const jsonCompiler = (params) => {
    const dir = params.dir
    if (params.host == '192.168.0.10') {
        const dirParse = dir.replace(/\//g, '\\')
        return Object.assign({}, params, {
            targetDir: '/nginx/webdir/' + dir,
            mvFrom: "D:\\jar\\home\\nginx\\webdir\\" + dirParse,
            mvTo: "D:\\nginxServer\\nginx-1.20.2\\html\\" + dirParse
        })
    }
}

module.exports = jsonCompiler;